package com.example.cpoopc.listview_test;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ListView;

/**
 * Created by cpoopc on 2015/1/26.
 */
public class MyListView extends ListView {
	
	public boolean moveChild;
	
    public MyListView(Context context) {
        super(context);
    }

    public MyListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    
//    @Override
//    public boolean dispatchTouchEvent(MotionEvent ev) {
//    	Log.d("cp:listview", "dispatchTouchEvent:"+super.dispatchTouchEvent(ev));
//    	return super.dispatchTouchEvent(ev);
//    }
//    
//    @Override
//    public boolean onInterceptTouchEvent(MotionEvent ev) {
//    	Log.d("cp:listview", "onInterceptTouchEvent:"+super.onInterceptTouchEvent(ev));
//    	return super.onInterceptTouchEvent(ev);
//    }
//    
//    @Override
//    public boolean onTouchEvent(MotionEvent ev) {
//    	Log.d("cp:listview", "onTouchEvent:"+super.onTouchEvent(ev));
//    	return super.onTouchEvent(ev);
//    }

//    @Override
//    public boolean dispatchTouchEvent(MotionEvent ev) {
//        int[] location = new int[2];
//        getLocationInWindow(location);
////        super.dispatchTouchEvent(ev);
////        requestDisallowInterceptTouchEvent(true);
//        return super.dispatchTouchEvent(ev);
//    }
//    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
//
//        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
//
//                MeasureSpec.AT_MOST);
//
//
//
//        super.onMeasure(widthMeasureSpec, expandSpec);
//
//    }


}
